FREE NET GAME
This command will terminate a net game currently in session.
FREE NET GAME
This command does not return a value.
You can only have one net game running at any one time per application, so in order to create a new game you must first free up any existing net games currently running. If you joined an existing net game, this command will remove you from the game and the game will continue running without you.
rem Set Network Session (Game On Selected Network Connection)
perform checklist for net sessions
cls : print "SESSIONS (Found on the Selected Connection)"
print
for c=1 to checklist quantity()
print c;". ";checklist string$(c)
next c
rem Have User Select a Session
SessionIndex=0
if checklist quantity()<>0
while SessionIndex<1 or SessionIndex>checklist quantity()
print : input "Select A Number>";SessionIndex
endwhile
endif
rem Create or Join a game
if SessionIndex=0
PlayerMax=4 : KindOfGame=1
create net game "gamename", "playername", 4,1
else
join net game SessionIndex, "playername"
endif
rem Was game created successfully
if net game exists()=1
print : print "GAME SESSION STARTED"
wait 8000
free net game
else
print "COULD NOT CREATE A SESSION"
endif
MULTIPLAYER Commands Menu
Index